import React, { Component } from 'react'
import { NavLink } from "react-router-dom"   // 分别暴露

export default class MyNavLink extends Component {
  render() {
    /* const { url, menu } = this.props
    return (
      <NavLink activeClassName="li_link" className="list-group-item" to={url}>{menu}</NavLink>
    ) */
    return (
      <NavLink activeClassName="li_link" className="list-group-item" {...this.props} />
    )
  }
}
